import create from 'zustand';

// 定义状态返回值类型
interface ExampleStore {
    count: number; // 值
    addFunc: (value: number) => any // 修改count的方法
}

export default create<ExampleStore>((set) => ({
    count: 1,
    addFunc: (input: number) => set({ count: input }),
}));
